package com.xneure.utils.formatfile.inifile;

import java.util.ArrayList;
import java.util.List;

public class IniFileObject {
	private List<IniSection> datas = new ArrayList<IniSection>();

	public void addSection(IniSection s) {
		datas.add(s);
	}

	public List<IniSection> getIniSections() {
		return datas;
	}

	public IniSection getSection(String name) {
		for (IniSection is : datas) {
			if (is.getName().equalsIgnoreCase(name)) {
				return is;
			}
		}
		return null;
	}
}
